package com.zmx.common.common.config.shardingsphere;

/**
 * @Description: 根据时间拆分表枚举
 * @Author zhaomxr
 * @Date 2021-12-13 14:05
 */
public enum ShardingDateTypeEnum {

    YEAR("year", "年"),
    YEAR_MOBTH("year_month", "年_月"),
    YEAR_MOBTH_DAY("year_month_day", "年_月_日");

    private String code;

    private String desc;

    ShardingDateTypeEnum() {
    }

    ShardingDateTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
